﻿@model BBICMS.WebUI.ViewModels.CategoriesListViewModel

@{
    ViewBag.Title = "产品分类";
    ViewBag.PageTitle = ViewBag.Title + "_产品管理";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml";
}

@section header{
   
}

<div class="toolbar">
    <a href="#" class="showmenu"><i class="fa fa-bars"></i></a>
    <ol class="breadcrumb">
        <li><a href="@Url.Action("Index","Home")"><i class="glyphicon glyphicon-home"></i> 控制面板</a></li>
        <li><a href="#">产品管理</a></li>
        <li class="active">@ViewBag.Title</li>
    </ol>
</div>
<div class="main-content">


    <div class="box">
        <header class="box-header">
            <h3><i class="glyphicon glyphicon-file"></i> @ViewBag.Title</h3>
            <div class="control">
                <a href="#" class="expand"><i class="fa fa-expand"></i></a>
                <a href="#" class="compress"><i class="fa fa-compress"></i></a>
            </div>
        </header>

      
        <section class="box-body">
            <div class="box-toolbar text-right">
                <a class="btn btn-primary" href="@Url.Action("Create")"><i class="glyphicon glyphicon-plus"></i> 添加分类</a>
            </div>

            <div class="table-responsive">
                <table class="table table-hover box-table">
                    <thead>
                        <tr>
                            <th class="col-md-1">
                                <input type="checkbox">
                            </th>
                            <th class="col-md-3">
                                类别
                            </th>
                            <th class="col-md-3">
                                <span class="line"></span>创建日期
                            </th>
                            <th class="col-md-3">
                                <span class="line"></span>创建人
                            </th>
                            <th class="col-md-2">
                                <span class="line"></span>操作
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <!-- row -->
                        @foreach (var item in Model.Categories)
                        {
                            <tr class="first">
                                <td>
                                    <input type="checkbox">
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Title)
                                </td>
                                <td class="description">
                                    @Html.DisplayFor(modelItem => item.AddedDate, "ShortDateTime")
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.AddedBy)
                                </td>
                                <td>

                                        <a href="/bbi-admin/Category/Edit/@item.CategoryId" class="btn btn-xs btn-primary"><i class="glyphicon glyphicon-edit"></i></a>
                                    <a href="/bbi-admin/Category/Delete/@item.CategoryId" class="btn btn-xs btn-danger"><i class="glyphicon glyphicon-trash"></i></a>
                                                                         
                                </td>
                            </tr>
                        }



                    </tbody>

                </table>
            </div>
        </section>
        <footer class="box-footer">
           
        </footer>


    </div>
</div>
<!-- end main container -->

@section footer{
<script>
    $(function () {
        //当前菜单          
        $('.mainmenu>li').eq(1).addClass('nav-open').find('.submenu li').eq(1).children('a').addClass('active');
    });
    </script>
}